import turtle

turtle.hideturtle()

turtle.penup()
turtle.goto(60,120)
turtle.pendown()
turtle.write("乘法口诀表")

for i in range(1,10):

    turtle.penup()
    turtle.goto(20+20*(i-1),90)
    turtle.pendown()
    turtle.write( str(i) )

turtle.penup()
turtle.goto(0,80)
turtle.pendown()

turtle.write("-"*50)

for i in range(1,10):

    turtle.penup()
    turtle.goto(0, 70 - 20*(i-1))
    turtle.pendown()
    turtle.write(str(i))

    turtle.penup()
    turtle.goto(10, 70 - 20 * (i - 1))
    turtle.pendown()
    turtle.write("|")

    for j in range(1,10):

        turtle.penup()
        turtle.goto(20 + 20 * (j - 1), 70 - 20*(i-1))
        turtle.pendown()
        turtle.write(str(i*j))


turtle.done()

